package tzhomestudio.framework.shared.utils;

import java.text.SimpleDateFormat;

/**
 * @author Timur Zolotuhin (e-mail: tzolotuhin@gmail.com)
 */
public class DateUtils {
    // Constants
    private static String DEFAULT_FORMAT = "dd.M.yyyy H.mm.ss";

    private static final long START_APP_TIME = System.currentTimeMillis();



    public static long getStartAppTime() {
        return START_APP_TIME;
    }

    public static String getStartAppTimeInDefaultFormat() {
        return new SimpleDateFormat(DEFAULT_FORMAT).format(START_APP_TIME);
    }

    public static String getDefaultFormat() {
        return DEFAULT_FORMAT;
    }

    public static void setDefaultFormat(String defaultFormat) {
        DateUtils.DEFAULT_FORMAT = defaultFormat;
    }
}
